<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><%= site.name %> | <%= title %></title>
  <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
    integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

  <link rel="stylesheet" href="/css/main.css">
</head>

<body>
  <!-- 导航栏开始 -->

  <nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
      <!-- Brand and toggle get grouped for better mobile display -->
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
          data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="navbar-brand" href="#">
          <img src="/img/logo.png" height="27" alt="">
        </a>
      </div>

      <!-- collapse折叠效果 -->
      <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <form class="navbar-form navbar-left">
          <div class="input-group">
            <input type="text" class="form-control fillet-l-30" aria-label="Amount (to the nearest dollar)"
              placeholder="搜索文章、博主">
            <span class="input-group-addon fillet-r-30 background-color-p color-f">GO</span>
          </div>
        </form>
        <ul class="nav navbar-nav navbar-right">
          <li><a href="/login">登录</a></li>
          <li>
            <a href="/register" 
            class="btn btn-default navbar-btn fillet-30 
            register-w outline color-p border-s mr-10 
            height-35 line-height-6 color-p register-hover">注册</a>
        </li>
          <li>
            <a href="/post/create" 
            class="btn btn-primary navbar-btn fillet-30 
            background-color-p write-article-w outline border-s 
            height-35 text-align-l a-hover color-f">
              <i class="glyphicon glyphicon-pencil mr-10 post"></i><span class="post-font">写文章</span>
            </a>
          </li>

          <!-- <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                <ul class="dropdown-menu">
                  <li><a href="#">Action</a></li>
                  <li><a href="#">Another action</a></li>
                  <li><a href="#">Something else here</a></li>
                  <li role="separator" class="divider"></li>
                  <li><a href="#">Separated link</a></li>
                </ul>
              </li> -->

        </ul>
      </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
  </nav>

  <!-- 导航栏结束 -->